org 0x0

start:
    ;mov direct,#data
	mov 0x30,#0x00
	mov 0x31,#0x11
	mov 0x32,#0x22
	mov 0x33,#0x33
	mov 0x34,#0x44
	mov 0x35,#0x55
	mov 0x36,#0x66
	mov 0x37,#0x77
	;mov Rn,direct
	mov R0,0x30
	mov R1,0x31
	mov R2,0x32
	mov R3,0x33
	mov R4,0x34
	mov R5,0x35
	mov R6,0x36
	mov R7,0x37
	;mov direct,direct
	mov 0x20,0x30
	mov 0x21,0x31
	mov 0x22,0x32
	mov 0x23,0x33
	mov 0x24,0x34
	mov 0x25,0x35
	mov 0x26,0x36
	mov 0x27,0x37
	;mov A,direct
	mov A,0x27
	sjmp $
;for test
REG_SP     EQU 0x1000
REG_A      EQU 0x1001
REG_B      EQU 0x1002
REG_PSW    EQU 0x1003
REG_PC     EQU 0x1004
REG_DPTR   EQU 0x1005
CYCLE      EQU 0x1006
REG_R0     EQU 0x2000
REG_R1     EQU 0x2001
REG_R2     EQU 0x2002
REG_R3     EQU 0x2003
REG_R4     EQU 0x2004
REG_R5     EQU 0x2005
REG_R6     EQU 0x2006
REG_R7     EQU 0x2007
REG_END    EQU 0x2FFF
	org 0x600
	dw 0x30,  0x00
	dw 0x31,  0x11
	dw 0x32,  0x22
	dw 0x33,  0x33
	dw 0x34,  0x44
	dw 0x35,  0x55
	dw 0x36,  0x66
	dw 0x37,  0x77
	dw 0x20,  0x00
	dw 0x21,  0x11
	dw 0x22,  0x22
	dw 0x23,  0x33
	dw 0x24,  0x44
	dw 0x25,  0x55
	dw 0x26,  0x66
	dw 0x27,  0x77
	dw REG_SP,    0x7
	dw REG_A,     0x77
	dw REG_B,     0x0
	dw REG_PC,    0x42
	dw REG_DPTR,  0x0
	dw CYCLE,     51
	dw REG_R0,    0x00
	dw REG_R1,    0x11
	dw REG_R2,    0x22
	dw REG_R3,    0x33
	dw REG_R4,    0x44
	dw REG_R5,    0x55
	dw REG_R6,    0x66
	dw REG_R7,    0x77
	dw REG_END,   0
end
	